
import { createRouter,createWebHashHistory} from "vue-router";

const Login = ()=> import('../view/Login')
const Home = () => import('../view/Home')
const Statistics = ()=> import('../view/home/Statistics')
const routes = [
    {
        path:'/login',
        name:'login',
        component:Login
    },
    {
        path: "/home",
        name:'home',
        component:Home,
        children:[
            {
                path:'statistics',
                name:'statistics',
                component:Statistics
            }
        ]
    }
]
const router = new createRouter({
    routes,
    history:createWebHashHistory(),
    mode:"history"
})
export default
router